package cz.muni.fi.pa165.dundd.dto;

import java.util.Objects;

/**
 *
 * @author xceluch
 */
public class AdministratorDTO {

    private String name;
    private String description;
    private String password;
    private Long id;

    //<editor-fold defaultstate="collapsed" desc="get set">
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    //</editor-fold>
    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + Objects.hashCode(this.id);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AdministratorDTO other = (AdministratorDTO) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "AdministratorDTO{" + "name=" + name + ", description=" + description + ", id=" + id + '}';
    }
}
